package cn.stylefeng.guns.modular.business.mapper;

import cn.stylefeng.guns.modular.business.entity.MessageNotice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface MessageNoticeMapper extends BaseMapper<MessageNotice> {

    List<MessageNotice> listByUserId(@Param("page") Page page, @Param("condition") String condition, @Param("type") String type,@Param("userId") Long userId);

    List<MessageNotice> list(@Param("page") Page page, @Param("condition") String condition, @Param("type") String type);

}
